package com.pf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pf.dto.request.UserListReq;
import com.pf.dto.response.UserListResp;
import com.pf.mapper.entity.UserEntity;
import org.apache.ibatis.annotations.Param;

/**
 * @author PanFei
 * @version 1.0.0
 * @createTime 2021/8/27
 */
public interface UserMapper extends BaseMapper<UserEntity> {

    /**
     * 查询用户分页列表
     *
     * @param page
     * @param userReq
     * @return
     */
    IPage<UserListResp> getUserPageList(Page<?> page, @Param("userReq") UserListReq userReq);
}
